function disableDisplayBlank(enable) {
    console.log("disableDisplayBlank:", enable)
    engine.setDisableDisplayBlank(enable)
}


function handleViewModeVisibleChanged() {
    console.log("handleViewModeVisibleChanged: viewMode", platformWindow.viewMode,
                "visible", platformWindow.visible)
    if (platformWindow.viewMode == WindowState.Fullsize && platformWindow.visible) {
        //visible
        disableDisplayBlank(true)
    }
    else {
        //not visible
        disableDisplayBlank(false)
    }
}
